package cc.rengu.redp.bizimpl.upmp.service;

import cc.rengu.redp.bizimpl.upmp.domain.MarketInfo;
import cc.rengu.redp.bizimpl.upmp.vo.OperationResult;
import cc.rengu.redp.common.domain.QueryRequest;
import cc.rengu.redp.common.exception.RedpException;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpServletRequest;

/**
* @author 刘玉亮.LL
*/
    public interface IMarketInfoService extends IService<MarketInfo> {

    IPage<MarketInfo> findByPage(QueryRequest request, MarketInfo info);

    IPage<MarketInfo> marketIinfoSelect2List(QueryRequest request, String q);

    MarketInfo findByCode(String groupMchntNo);

    @Transactional(value = "transactionManager")
    OperationResult saveData(String oprMenuId, String oprMenuName, MarketInfo entity, HttpServletRequest request, String webNextUrl) throws RedpException;

    MarketInfo findOneByCode(String groupMchntNo, String status, String instId);
}
